import axios from 'axios'

const instance = axios.create({
  baseURL: 'http://toutiao-app.itheima.net'
})

function userLogin ({ mobile, code }) {
  return instance({
    url: '/v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code
    }
  })
}

export { userLogin }
